
import employee from '@/api/system/employeeAPI'
import auth from '@/api/auth'
export function getUserInfoAPI (userId) {
  return new Promise((resolve, reject) => {
    employee.getEmployeeAPI({employeeCode: userId}).then(res => {
      resolve(res)
    }).catch(error => {
      reject(error)
    })
  })
}
export function updateUserInfoAPI (params) {
  return new Promise((resolve, reject) => {
    auth.updateUserInfoAPI(params).then(res => {
      resolve(res)
    }).catch(error => {
      reject(error)
    })
  })
}
export function updateLoginPasswordAPI (params) {
  return new Promise((resolve, reject) => {
    auth.updateLoginPasswordAPI(params).then(res => {
      resolve(res)
    }).catch(error => {
      reject(error)
    })
  })
}
